package cn.edu.ctbu.controller.user;

import cn.edu.ctbu.VO.ShopStatusVO;
import cn.edu.ctbu.result.Result;
import cn.edu.ctbu.service.IShopStatusService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("用户端店铺营业状态")
@RequestMapping("/user/shopStatus")
@Api(tags = "用户端营业状态接口")
public class ShopStatusController {
    @Autowired
    IShopStatusService iShopStatusService;


    /**
     * 查看营业状态
     */
    @GetMapping
    public Result<ShopStatusVO> shopStatus(){
        ShopStatusVO vo=iShopStatusService.get();
        return Result.success(vo);
    }



}
